package com.zany.children.dao;

import com.zany.children.vo.PaymentOrg;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import java.util.List;

public class PaymentOrgDaoImpl extends SqlMapClientDaoSupport implements PaymentOrgDao{

    @Override
    public Long savePaymentOrg(PaymentOrg paymentOrg) {
        Long id = (Long)getSqlMapClientTemplate().insert("paymentorg.savePaymentOrg", paymentOrg);
        return id;
    }

    @Override
    public List<PaymentOrg> getPaymentOrgList(PaymentOrg paymentOrg) {
        List list = getSqlMapClientTemplate().queryForList("paymentorg.getPaymentOrgList", paymentOrg);
        return list;
    }

    @Override
    public void updatePaymentOrg(PaymentOrg paymentOrg) {
        getSqlMapClientTemplate().update("paymentorg.updatePaymentOrg",paymentOrg);
    }
}
